//
//  DBHelper.h
//  HB
//
//  Created by 陶秋安 on 16/2/1.
//  Copyright © 2016年 孙智慧. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "FMDatabase.h"
#import "ViewResourse.h"
#import "UserInfo.h"

@interface DBHelper : NSObject

+(DBHelper *)sharedMyClass;

-(void) createDB :(NSString *) database_path;
-(void) createTable;

#pragma 用户信息操作 ------------------------- begin -----------------
-(void) addData:(UserInfo *)userInfo;
-(void) upData:(NSString *)djID andIsLogin:(BOOL)isLogin;
-(void) delData:(NSString *)djID;
-(NSMutableDictionary *) queryData;
#pragma 用户信息操作 ------------------------- end -----------------

#pragma 缓存歌曲操作 ------------------------- begin -----------------
//-(void) addCatchMusic :(CatchMusic *) catchMusic;
//-(NSMutableArray *) getCatchMusic;
#pragma 缓存歌曲操作 ------------------------- end -----------------

#pragma 最近播放操作 ------------------------- begin -----------------
-(void) addViewResourse :(ZYMusic *)music;
-(NSMutableArray *) getViewResourse;
#pragma 最近播放操作 ------------------------- end -----------------

#pragma 我的收藏操作 ------------------------- begin -----------------
//-(void) addMyPakage :(MyPakage *) myPakage;
//-(NSMutableArray *) getMyPakage;
#pragma 我的收藏操作 ------------------------- end -----------------

#pragma 我的碟包操作 ------------------------- begin -----------------
//-(void) addMyCollection :(MyCollection *) myCollection;
//-(NSMutableArray *) getMyCollection;
#pragma 我的碟包操作 ------------------------- end -----------------
@end
